package com.woniu.command.systemLogCommand;

import com.woniu.command.Command;
import com.woniu.command.handler.SystemLogCommandHandler;
import com.woniu.outlet.po.SystemLogPo;
import com.woniu.utils.ApplicationContextHolder;

public class UpdateSystemLogCommand implements Command<SystemLogPo, Integer> {

    private SystemLogCommandHandler handler;

    public UpdateSystemLogCommand() {
        this.handler = ApplicationContextHolder.getApplicationContext()
                .getBean(SystemLogCommandHandler.class);
    }

    @Override
    public Integer execute(SystemLogPo systemLogPo) {
        return this.handler.updateSystemLog(systemLogPo);
    }
}
